﻿@model CultuRAM.Models.EventType

@{
    ViewBag.Title = "Editar";
}

@using (Ajax.BeginForm("EditEventTypePvPost",null)) 
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Tipo de Evento</legend>
         @Html.HiddenFor(model => model.TypeId)

        <table style="border: 0">
            <tr>
                <td>
                    <span class="editor-label">
                        @Html.LabelFor(model => model.Type)
                    </span>
                </td>
                <td>
                    <span class="editor-field">
                        @Html.EditorFor(model => model.Type)
                        @Html.ValidationMessageFor(model => model.Type)
                    </span>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="editor-label">
                        @Html.LabelFor(model => model.SuperType)
                    </span> 
                </td>
                <td>
                    <span class="editor-field">            
                        @Html.DropDownList("SuperTypeId", (SelectList)ViewBag.SuperTypeId1)             
                        @*@Html.DropDownListFor(model => model.SuperTypeId, (SelectList)ViewBag.SuperTypeId1)*@
                        @Html.ValidationMessageFor(model => model.SuperTypeId)
                        
                    </span>
                </td>
            </tr>
        </table>

        
         <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
            <button type="submit" class="btn btn-primary" onclick="javascript: location.reload();">Guardar</button>
        </div>

        
        <p>
            @*<input type="submit" value="Create" onclick="javascript: location.reload();"/>*@
        </p>
    </fieldset>
}


@Scripts.Render("~/bundles/jqueryval")



